<template>
  <div id="components-grid-demo-flex">
    <p>sub-element align left</p>
    <z-row justify="start">
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
    </z-row>

    <p>sub-element align center</p>
    <z-row justify="center">
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
    </z-row>

    <p>sub-element align right</p>
    <z-row justify="end">
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
    </z-row>

    <p>sub-element monospaced arrangement</p>
    <z-row justify="space-between">
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
    </z-row>

    <p>sub-element align full</p>
    <z-row justify="space-around">
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
      <z-col :span="4">col-4</z-col>
    </z-row>
  </div>
</template>

<style lang="less" scoped>
#components-grid-demo-flex :deep(.ant-row) {
  background: rgba(128, 128, 128, 0.08);
}
.ant-col {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ant-row {
  .ant-col {
    &:nth-child(2n-1) {
      background: #0080ff;
    }
    &:nth-child(2n) {
      background: #00a0e9;
    }
  }
}
</style>
